package com.zs.diveinspringbootkotlin.service

import org.springframework.context.annotation.Profile
import org.springframework.stereotype.Service

/**
 *
 * @description
 * @author madison
 * @date 2021/6/3 19:01
 *
 */
@Profile("Java8")
@Service
class Java8CalculateService : CalculateService {
    override fun sum(vararg values: Int): Int {
        println("Java8 sum 实现")
        return values.sum()
    }
}